import type { DepartData, Picture } from "@/types/consult"
import { request } from "@/utils/http"

// 1.  医生科室列表
export const departmentListApi = () => {
  return request.get<null, DepartData[]>('/dep/all')
}

// 2. 上传图片
export const uploadImgApi = (file: File) => request.upload<null, Picture>('/upload', file)
